package com.xishu.entity.shop;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Table(name = "recharge_item")
@Entity
public class RechargeItem extends AbstractEntity  {

    @ApiModelProperty("商店id")
    private Integer shopId;

    @ApiModelProperty("用户充值的金额")
    private Double useCost;

    @ApiModelProperty("赠送金额")
    private Double giveMoney;

    @ApiModelProperty("充值说明")
    private String description;

    public Double getUseCost() {
        return useCost;
    }

    public void setUseCost(Double useCost) {
        this.useCost = useCost;
    }

    public Double getGiveMoney() {
        return giveMoney+useCost;
    }

    public void setGiveMoney(Double giveMoney) {
        this.giveMoney = giveMoney;
    }
}
